package com.hyh.ui.contacts;

import com.hyh.ui.base.BasePresenter;
import com.platform.response.BaseResponse;
import com.platform.response.FrameTransferResponse;

/**
 * Created by Administrator on 2019/1/28.
 */

public class CommPresenter extends BasePresenter<CommContract.View> implements CommContract.Presenter {

    @Override
    public void responseCallback(BaseResponse response) {
        String msgType = response.MessageType;
        switch (msgType){
            case BaseResponse.MsgType.FrameTransferResponse:
                FrameTransferResponse frameTransferResponse = (FrameTransferResponse) response;
                String id=frameTransferResponse.Body.id;
                mView.setContracts(id);
                break;
        }
    }
}
